public class Main2 {
	public static void main(String[] args) {
		c();
	}

	private static void a() {
		int i = 2;
		while (i > 1) {
			System.out.println(i);
			throw new RuntimeException();
		}
	}

	private static void b() {
		try {
			int i = 2;
			while (i > 1) {

				System.out.println(i);
				throw new RuntimeException();
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private static void c() {

		int i = 2;
		while (i > 1) {
			try {
				System.out.println(i);
				throw new RuntimeException();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
}
